package com.example.storage.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.example.storage.entity.TStorage;
import org.apache.ibatis.annotations.Param;

/**
 *  Mapper 接口
 */
public interface TStorageMapper extends BaseMapper<TStorage> {

    /**
     * 扣减商品库存
     * @param commodityCode 商品code  count扣减数量
     *
     */
    int decreaseStorage(@Param("commodityCode") String commodityCode, @Param("count") Integer count);
}
